package com.example.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.example.entity.Modules;
import com.example.entity.TreeMenu;

@Mapper
public interface ModulesMapper {
	
	/**
	 * 查询所有模块信息
	 * @return
	 */
	public List<Modules> findAllModules();
	
	public List<Modules> findAll(String name);

	public List<TreeMenu> find(String roleId);

	public int addModules(Modules me);

	public int addModule(Modules me);

	public int upModules(Modules me);

	public int delModules(Integer id);

}